#include "SGL.h"
#include "SGLEvent.h"
#include "irrlicht.h"

using namespace SGLEngine;

SGLEvent::SGLEvent(SGL* eng)
{
	this->engine = eng;
}

bool SGLEvent::OnEvent(const irr::SEvent &irrevent)
{
	/*if (this->engine != NULL)
	{
		if (irrevent.EventType == irr::EET_KEY_INPUT_EVENT)
		{
			if (this->engine->key_down.size() > 0)
			{
				for(unsigned int i = 0; i < this->engine->key_down.size(); i++)
				{
					this->engine->key_down.at(i)->Action(irrevent);
				}
			}
		}
		return true;
	} else {
		return false;
	}*/
	return false;
}